Optimal. Leaf size=73 \[ \frac{x^{m+1} (A b-a B)}{a b (a+b x)}-\frac{x^{m+1} (A b m-a B (m+1)) \, _2F_1\left (1,m+1;m+2;-\frac{b x}{a}\right )}{a^2 b (m+1)} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.0296815, antiderivative size = 73, normalized size of antiderivative = 1., number of steps used = 3, number of rules used = 3, integrand size = 27, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.111, Rules used = {27, 78, 64} \[ \frac{x^{m+1} (A b-a B)}{a b (a+b x)}-\frac{x^{m+1} (A b m-a B (m+1)) \, _2F_1\left (1,m+1;m+2;-\frac{b x}{a}\right )}{a^2 b (m+1)} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 27
Rule 78
Rule 64
Rubi steps
\begin{align*} \int \frac{x^m (A+B x)}{a^2+2 a b x+b^2 x^2} \, dx &=\int \frac{x^m (A+B x)}{(a+b x)^2} \, dx\\ &=\frac{(A b-a B) x^{1+m}}{a b (a+b x)}-\frac{(A b m-a B (1+m)) \int \frac{x^m}{a+b x} \, dx}{a b}\\ &=\frac{(A b-a B) x^{1+m}}{a b (a+b x)}-\frac{(A b m-a B (1+m)) x^{1+m} \, _2F_1\left (1,1+m;2+m;-\frac{b x}{a}\right )}{a^2 b (1+m)}\\ \end{align*}
Mathematica [A] time = 0.0397282, size = 63, normalized size = 0.86 \[ \frac{x^{m+1} \left (\frac{(a B (m+1)-A b m) \, _2F_1\left (1,m+1;m+2;-\frac{b x}{a}\right )}{m+1}+\frac{a (A b-a B)}{a+b x}\right )}{a^2 b} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [F] time = 0.076, size = 0, normalized size = 0. \begin{align*} \int{\frac{{x}^{m} \left ( Bx+A \right ) }{{b}^{2}{x}^{2}+2\,abx+{a}^{2}}}\, dx \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F] time = 0., size = 0, normalized size = 0. \begin{align*} \int \frac{{\left (B x + A\right )} x^{m}}{b^{2} x^{2} + 2 \, a b x + a^{2}}\,{d x} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [F] time = 0., size = 0, normalized size = 0. \begin{align*}{\rm integral}\left (\frac{{\left (B x + A\right )} x^{m}}{b^{2} x^{2} + 2 \, a b x + a^{2}}, x\right ) \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F] time = 0., size = 0, normalized size = 0. \begin{align*} \int \frac{x^{m} \left (A + B x\right )}{\left (a + b x\right )^{2}}\, dx \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [F] time = 0., size = 0, normalized size = 0. \begin{align*} \int \frac{{\left (B x + A\right )} x^{m}}{b^{2} x^{2} + 2 \, a b x + a^{2}}\,{d x} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]